﻿<local:KeyedWindowBase x:Class="RawView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:RawExplorer2.UI"
        x:Name="rawView"
        Title="Raw View"
        Width="500"
        Height="300"
        TextOptions.TextFormattingMode="Display">
    <local:KeyedWindowBase.DataContext>
        <local:RawViewVm />
    </local:KeyedWindowBase.DataContext>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBox Margin="8"
                 AcceptsReturn="True"
                 AcceptsTab="True"
                 HorizontalScrollBarVisibility="Auto"
                 Text="{Binding Path=RawData}"
                 VerticalScrollBarVisibility="Auto" />
        <StackPanel Grid.Row="1"
                    Margin="4"
                    HorizontalAlignment="Right"
                    Orientation="Horizontal">
            <Button Width="72"
                    Margin="4"
                    Command="{Binding OkCommand}"
                    CommandParameter="{Binding ElementName=rawView}"
                    Content="OK"
                    IsDefault="True" />
            <Button Width="72"
                    Margin="4"
                    Command="{Binding CancelCommand}"
                    CommandParameter="{Binding ElementName=rawView}"
                    Content="Cancel"
                    IsCancel="True" />
        </StackPanel>
    </Grid>
</local:KeyedWindowBase>
